import request from '@/utils/request'
// 添加商品-灯
export function add(data) {
  return request({
    url: '/settle/manager/goods/pj/add',
    method: 'post',
    data
  })
}

// 商品-配件删除
export function del(data) {
    return request({
      url: '/settle/manager/goods/pj/del',
      method: 'post',
      data
    })
  }


// 配件修改
export function edit(data) {
  return request({
    url: '/settle/manager/goods/pj/modify',
    method: 'post',
    data
  })
}


// 商品-配件列表
export function list(data) {
  return request({
    url: '/settle/manager/goods/pj/list',
    method: 'post',
    data
  })
}



// 商品-配件上下架
export function upAndDwon(data) {
  return request({
    url: '/settle/manager/goods/pj/up/down',
    method: 'post',
    data
  })
}


// 获取商品-配件详情
export function detail(data) {
  return request({
    url: '/settle/manager/goods/pj/dtl',
    method: 'post',
    data
  })
}


// 配件导入
export function importLight(data) {
  return request({
    url: '/settle/manager/goods/pj/import',
    method: 'post',
    data
  })
}